﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Cryptography;

namespace Core
{
    public static partial class system
    {
        public static dynamic getLangInfo(int code)
        {
            var sql = new Sql.SqlDataContext();
            var l = sql.Language.FirstOrDefault(row => row.code == code);
            if (l == null) return new
                {
                    success = false,
                    msg = "语言不存在"
                };
            return new
            {
                success = true,
                l.title,
                l.code,
                l.disabled,
                l.standardTest,
                l.standardCode,
                l.standardTime,
                l.standardMem,
                l.safeTest,
                l.safeRegExp
            };
        }
    }
}
